@use './variables.module.scss' as *;
@use './mixin.scss' as *;

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}
.hover-opacity-75{
  &:hover{
    opacity: .75;
  }
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
  box-sizing: border-box;
}


.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}



.ant-badge{
  &.ant-badge-status{
    .ant-badge-status-text{
      color: $color-text-1;
    }
  }
}
// 全局input字体颜色
.ant-input,
.ant-select-selection-item,
.ant-select-selection-item-content,
.ant-picker .ant-picker-input >input,
.ant-select-dropdown .ant-select-item{
  color: $color-text-2;
}
/* 全局修改  placeholder */
.ant-picker-input input::placeholder,
.ant-select-selection-placeholder,
.ant-input::placeholder {
  color: $color-text-3 !important;
  &[disabled]{
  color: $color-text-4 !important;
  }
}


.ant-select-dropdown .ant-select-item,
.ant-picker-panels .ant-picker-header,
.ant-picker-dropdown .ant-picker-content th,
.ant-picker-dropdown .ant-picker-cell-in-view{
  color: $color-text-2 !important;
}
.ant-form-item{
  .ant-form-item-label{
    font-size: 14px;
    font-variant: tabular-nums;

    >label{
      color: #394d73 !important;
      font-weight: 400;
    }
  }
}

.filter-content-wrap{
  padding: 20px 20px 4px;
  box-sizing: border-box;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #f7f9fc;
  label.ant-form-item-no-colon:before{
    display: inline-block;
    margin-right: 4px;
    color: transparent;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: "*";
  }
  .filter-row{
    width: calc(100% - 0px);
  }
  .reset-btn{
    margin-left: 8px;
  }
  .ant-form-item{
    margin-bottom: 16px;
    padding-bottom: 0px;
    padding-left: 1px;
    border: 1px solid rgb(211, 219, 235);
    border-radius: 4px;
    row-gap: 0px;
  }
}
// 列表按钮
.operate-btn{
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  &:hover{
    opacity: .75;
  }  
  &.operation-disabled-btn{
    cursor: no-drop;
    color: $color-text-4 !important;
  }
}

.detail-card-content-group{
  
  .ant-card-head{
    padding: 1em 0 !important;
    font-size: 16px;
    font-weight: 700;
    color: #394d73;
    border: none !important;
  }
  .ant-card-body{
    padding: 20px !important;
    box-sizing: border-box;
    background: #f7f9fc;
    border-radius: 8px;
    font-size: 14px;
    color: $color-text-2;
  }
  .ant-descriptions-item{
    padding-bottom: 20px;
  }
  .ant-descriptions-item-label{
    color: $color-text-3 !important;
    font-size: 14px;
    font-weight: 400;
    text-align: start;
  }
  .ant-descriptions-item-content{
     color: $color-text-1 !important;
    font-size: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  &.card-no-border{
    box-shadow: none;
  }
  &.card-no-pd-bt{
    .ant-card-body{
      padding-bottom: 0 !important; 
    }
  }
}

.ant-btn-default{
  color: #465a80;
  background: #f0f4fa;
  border-color: transparent;
}
.link-btn{
  &.ant-btn{
    padding: 0 !important;
    height: auto !important;
  }
}
// 抽屉样式
.custom-drawer-wrap{
  &.ant-drawer{
    .ant-drawer-content-wrapper{
      .ant-drawer-header{
        border-bottom: 1px solid #E8EAEC;
        background: linear-gradient(0deg, #FFFFFF 0%, #EEF4FF 100%);
        padding: 16px 20px;
        box-sizing: border-box;
      }
      .ant-drawer-footer{
        border-top: 1px solid #E8EAEC;
        padding-bottom: 16px;
        .drawer-footer-wrap{
          display: flex;
          justify-content: center;
          align-items: center;
          .ant-btn{
            font-weight: 400;
            font-size: 14px;
            
            &.ant-btn-default{
              // color: #7B7D84;
              .iconfont{
                color: #7B7D84;
              }
              &:hover{
                color: #4096ff;
                .iconfont{
                  color: #4096ff;
                }
              }
            }
          }
          .ant-btn:first-child{
            margin-right: 20px;
          }
        }
      }
      .ant-drawer-title{
        color: $color-text-1;
        font-size: 16px;
        font-weight: 500;
      }
      .ant-drawer-close{
        position: absolute;
        right: 0;
        top: 20px;
      }
    }
  }
}

// 模态框样式
.modal-common-wrap{
  &.ant-modal{
    top: 60px !important;
    .ant-modal-content{
      padding: 0;
      .modal-header{
        padding: 14px 24px;
        background: linear-gradient(#FFFFFF 0%, #EEF4FF 100%);
        border-radius: 10px 10px 0px 0px;
        border-bottom: 1px solid #E8EAEC;
        font-weight: 500 !important;
        font-size: 16px !important;
        color: $color-text-1 !important;
      }
      .ant-modal-body{
        box-sizing: border-box;
        max-height: 60vh;
        overflow: auto;
        padding: 12px 32px 24px 20px;
      }
      .ant-modal-footer{
        padding: 12px 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        // box-shadow: 0px -1px 1px 0px #E8EAEC;
        border-top: 1px solid #E8EAEC;
        .ant-btn:first-child{
          margin-right: 24px;
        }
      }
      .modal-content-wrap{

      }
    }
  }
}
// dropdown样式
.dropdown-menu-common{
  .ant-dropdown-menu{
    max-height: 60vh;
    overflow: hidden;
    overflow-y: auto;
    .ant-dropdown-menu-item{
      font-weight: 400;
      font-size: 14px;
      color: #394D73;
    }
  }
}
.list-badge-dot{
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-radius: 50%;
  margin-right: 2px;
  display: inline-block;
  &.dot-0,
  &.dotIn-0{
    border-color: #FFAE3C;
  }
  &.dot-1,
  &.dotIn-3{
    border-color: #FF4C38;
  }
  &.dot-2,
  &.dotIn-2{
    border-color: #2766FA;
  }
  &.dot-3,
  &.dotIn-1{
    border-color: #CFE3FE;
  }
  &.dot-4,
  &.dotIn-4{
    border-color: #34C94F;
  }
  &.dotIn-5{
    border-color: #409EFF;
  }
}
.tips-title{
  font-size: 14px;
  font-weight: 400;
  color: $color-text-3;
  padding: 0;
  margin: 0;
}

.filter-btn{
  &.ant-btn{
    padding: 0;
    line-height: 32px;
    text-align: center;
    background-color: #f0f4fa;
    border: 1px solid transparent;
    .anticon-filter{
      color: $color-text-3;
      font-size: 16px;
    }
    &:hover{
      background-color: #e5e6eb;
      border-color:transparent;
      color: #5c5c5c;
    }
    &.show-search-btn{
      background: #e5effe;
      .anticon-filter{
        color: $primary-6 ;
      }
    }
  }
}
// 表格样式
.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:first-child,
.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:last-child{
  border-start-start-radius:0 !important;
  border-start-end-radius:0 !important;
}
.ant-table-wrapper table,
.ant-table-wrapper .ant-table .ant-table-title,
.ant-table-wrapper .ant-table .ant-table-header{
  border-radius: 0 !important;
}
.table-common-wrap{
  &.ant-table-wrapper{
    .ant-table-thead{
      th{
        font-weight: 700;
        font-size: 14px;
        color: $color-text-1;
        background-image: linear-gradient(#ebf0fa, #ebf0fa);
        background-repeat: no-repeat;
        background-position: 100% 100%;
        padding: 12px 10px;
        box-sizing: border-box;
      }
    }
    .ant-table-tbody{
      td{
        font-weight: 400;
        font-size: 14px;
        color: $color-text-1;
        padding: 13px 10px;
        box-sizing: border-box;
      }
    }
    .ant-table-pagination{
      justify-content: flex-end;
      color: $color-text-1;
      font-size: 14px;
      .ant-select-selector,
      .ant-pagination-options-quick-jumper{
        color: $color-text-1;
        font-size: 14px;
      }
      .ant-pagination-item,
      .ant-pagination-item-link{
        text-align: center;
        border-radius: 4px;
        user-select: none;
        background-color: #FFFFFF;
        a{
          color: $color-text-1;
          font-size: 14px;
        }
      }
      .ant-pagination-item-link{
        border-color: $color-border-3;
        &:not(:disabled){
          &:hover{
            color: $primary-6 !important;
          }
        }
        &:disabled{
          border-color: $color-border-3;
          color: #bfbfbf;
        }
      }
      .ant-pagination-item{
        border-color: $color-border-3;
        &:hover{
          color: $primary-6 !important;
          a{
            color: $primary-6 !important;
          }
        }
        &.ant-pagination-item-active{
          border-color: $primary-6 !important;
          a{
            color: $primary-6 !important;
          }
        }
      }
    }
  }
}
.json-display{
  white-space: pre-wrap;
  line-height: 2;
  font-weight: 500;
}

.sticky{
  position: sticky;
  top: 0;
  z-index: 100;
}
.point{
  cursor: pointer;
}
.w-328{
  width: 328px !important;
}
.bg-fff{
  background-color: #ffffff;
}
.color-394d73{
  color: $color-text-1;
}
.color-primary-6{
  color: $primary-6;
}
.color-warning-4{
  color: $warning-4;
}
.color-success-4{
  color: $success-4;
}
.color-danger-4{
  color: $danger-4;
}
.color-primary-4{
  color: $primary-4;
}
.color-fff{
  color: #ffffff;
}
.just-show-file-list-upload{
  a,
  .anticon{
    color: $primary-6;
  }
}
.flex-start{
  display: flex;
  justify-content: flex-start;
}
.flex-start-center{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.flex-end-start{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.fw-bold{
  font-weight: bold;
}
.fw-400{
  font-weight: 400;
}
.fw-500{
  font-weight: 500;
}
.mg-rt-16{
  margin-right: 16px;
}
.mg-lf-8{
  margin-left: 8px;
}
.mg-lf-16{
  margin-left: 16px;
}
.mg-lf-24{
  margin-left: 24px;
}
.mg-top-8{
  margin-top: 8px;
}
.mg-top-16{
  margin-top: 16px;
}
.mg-top-20{
  margin-top: 20px;
}
.mg-bt-48{
  margin-bottom: 48px;
}
.mg-bt-16{
  margin-bottom: 16px;
}
.mg-bt-20{
  margin-bottom: 20px;
}
.mg-bt-8{
  margin-bottom: 8px;
}
.pd-8{
  padding: 8px;
}
.pd-20{
  padding: 20px;
}
.pd-bt-8{
  padding-bottom: 8px;
}
.pd-bt-20{
  padding-bottom: 20px;
}
.pd-bt-32{
  padding-bottom: 32px;
}
.pd-lf-16{
  padding-left: 16px;
}
.b-r-10{
  border-radius: 10px;
}
.one-line-ellipsis{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
  word-wrap: break-word;
}